<?php
	class LogView{
		
		public function showMessages(){
			$ret = "\n<ul>\n";		
			foreach(Log::$loggedMessages as $value){
				$ret .= "<li>$value</li>\n";
			}
			$ret .= "</ul>";
			
			return $ret;
		}
		
		public function showErrors() {
			$ret = "\n<ul>\n";		
			foreach(Log::readErrorLog() as $value){
				$ret .= "<li>$value</li>\n";
			}
			$ret .= "</ul>";
			
			return $ret;
		}		
	}